//
//  HEOrderGoodsFooterCell.m
//  HealthFamily
//
//  Created by 吴欧 on 2020/10/27.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import "HEOrderGoodsFooterCell.h"

@interface HEOrderGoodsFooterCell ()

@property (nonatomic, strong) UILabel *titleLb;

@end

@implementation HEOrderGoodsFooterCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
     if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
         self.selectionStyle = UITableViewCellSelectionStyleNone;
         [self initUI];
     }
     return self;;
 }

- (void)initUI {
    _titleLb = [UILabel new];
    _titleLb.font = DYFont(16);
    _titleLb.textColor = CNavLightBlackColor;
    _titleLb.textAlignment = NSTextAlignmentRight;
    _titleLb.numberOfLines = 0;
    _titleLb.lineBreakMode = NSLineBreakByCharWrapping;
    [self.contentView addSubview:_titleLb];
    
     [_titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
         make.top.equalTo(self.contentView).mas_offset(10);
         make.left.equalTo(self.contentView).mas_offset(15);
         make.right.equalTo(self.contentView).mas_offset(-15);
         make.bottom.equalTo(self.contentView.mas_bottom).mas_offset(-15);
     }];
}

- (void)refreshContent:(GDFiterCellModel *)fiterModel formModel:(GDFormModel *)formModel indexPath:(NSIndexPath *)indexPath {
//    _titleLb.text=@"共6件商品  运费0  小计：￥600.00";
    NSArray *rows = self.formModel.order_goodsDataSource[indexPath.section-1];
    _titleLb.text = rows[indexPath.row];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
